﻿/*
----------------------------------------
    Rodeo Game Engine
    Rodeo Tools Module
    HtmlWriter.h - header file
    Copyright(C) Marcin Goryca
----------------------------------------
*/
#ifndef RODEO_TOOLS_HTMLWRITER_H_
#define RODEO_TOOLS_HTMLWRITER_H_

#ifndef RODEO_CORE_ERROR_H_
#include "core\error.h"
#endif

namespace rodeotools
{
class HtmlWriter
{
public:
    HtmlWriter()
        :hfile_(NULL)
    {}

    ~HtmlWriter(){}

    // filename - specify your destination HTML file e.g. index.html 
    // add your website content
    bool writeToHTML(const char* filename, std::string s);

protected:

    bool create(const char* filename);
    void writeHeader();
    void writeFooter();
    void addToPage(std::string s); 

//==== [ MEMBERS ] ====//
    HANDLE hfile_;
};
}    // end of rodeotools namespace
#endif    //RODEO_TOOLS_HTMLWRITER_H_